<!DOCTYPE html>
<html>
<head>
    <title>${siteName} - 中立的小说排名、评分网站</title>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="keywords" content="好看的小说,小说排名,小说评分,小说评测">
    <meta name="description" content="专注于好看的小说信息采集和评分的网站">
    <meta name="author" content="${siteName}">
    <link rel="icon" type="image/png" sizes="32x32" href="icon/favicon-32x32.png">
    <link rel="icon" type="image/png" sizes="16x16" href="icon/favicon-16x16.png">
    <link rel="stylesheet" href="admin/plugins/fontawesome-free/css/all.min.css">
    <link rel="stylesheet" href="css/ionicons/2.0.1/ionicons.min.css">
    <link rel="stylesheet" href="admin/plugins/datatables-bs4/css/dataTables.bootstrap4.css">
    <link rel="stylesheet" href="admin/plugins/sweetalert2-theme-bootstrap-4/bootstrap-4.min.css">
    <link rel="stylesheet" href="admin/css/adminlte.min.css">
    <link rel="stylesheet" href="css/mainpage.css">
    <link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,400i,700" rel="stylesheet">
</head>
<body class="hold-transition layout-top-nav" style="background: #b3b3b3;">
<div class="wrapper">
    <div class="content-wrapper">
        <#--  nav bar  -->
        <#include "./header.ftl">

        <#--  content   -->
        <div class="row">
            <div class="col-lg-2" style="background: #b3b3b3;">

            </div>
            <div class="col-lg-8 col-sm-12">
                <div class="content-header">
                </div>
                <section class="content">
                    <div class="row">
                        <div class="col-12">
                            <div class="card">
                                <div class="card-header">
                                    <strong>最近收集入库：</strong>
                                </div>
                                <div class="card-body">
                                    <div class="row" style="min-height: 10rem;">
                                        <div class="col-lg-8 col-md-12" style="border-right: solid 1px #dfdfdf;">
                                            <div class="row">
                                                <span class="pl-2 mb-2" style="border-left: 5px solid darkred">新增小说</span>
                                            </div>
                                            <#list articleList as row>
                                            <div class="row row-can-click" onclick='location.href="/fiction/${row[0]}"'>
                                                <div class="col-1">
                                                    ${row_index + 1}
                                                </div>
                                                <div class="col-6">
                                                    <span>${row[1]}</span>
                                                </div>
                                                <div class="col-2">
                                                    ${row[2]}
                                                </div>
                                                <div class="col-3">
                                                    ${row[3]}
                                                </div>
                                            </div>
                                            </#list>
                                            <div class="row pt-3">
                                                <div class="col-9"></div>
                                                <div class="col-3"><a href="/articlecollected">查看全部</a></div>
                                            </div>
                                        </div>

                                        <div class="col-lg-4 col-md-12">
                                            <div class="row ml-lg-5">
                                                <span class="pl-2 mb-2" style="border-left: 5px solid darkred">新增作者</span>
                                            </div>
                                            <#list authorList as row>
                                            <div class="row ml-lg-5 row-can-click" onclick='location.href="/author/${row[0]}"'>
                                                <div class="col-1">
                                                    ${row_index + 1}
                                                </div>
                                                <div class="col-11">
                                                    <span>${row[1]}</span>
                                                </div>
                                            </div>
                                            </#list>
                                            <div class="row pt-3">
                                                <div class="col-9"></div>
                                                <div class="col-3"><a href="/authorcollected">查看全部</a></div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>

                    <div class="row">
                        <div class="col-12">
                            <div class="card">
                                <div class="card-header">
                                    <strong>书荒了，看什么：</strong>
                                </div>
                                <div class="card-body">
                                    <div class="row">
                                        <#list topArticleList as row>
                                        <div class="col-md-4">
                                            <div class="card card-widget widget-user" onclick="location.href='/fiction/${row[7]}'" style="cursor: pointer;">
                                                <div class="widget-user-header <#if (row_index == 0)>bg-warning<#elseif (row_index == 1)>bg-success<#elseif (row_index == 2)>bg-info<#else>bg-secondary</#if>">
                                                    <h3 class="widget-user-username">${row[0]}</h3>
                                                    <h5 class="widget-user-desc">${row[1]}榜：第${row[2]}名</h5>
                                                    <h6 class="widget-user-desc">${row[3]}</h6>
                                                </div>
                                                <div class="card-footer">
                                                    <div class="row">
                                                        <div class="col-sm-4 border-right">
                                                            <div class="description-block">
                                                                <h5 class="description-header">分数</h5>
                                                                <span class="description-text pffontext">${row[4]}</span>
                                                            </div>
                                                        </div>
                                                        <div class="col-sm-4 border-right">
                                                            <div class="description-block">
                                                                <h5 class="description-header">类型</h5>
                                                                <span class="description-text">${row[5]}</span>
                                                            </div>
                                                        </div>
                                                        <div class="col-sm-4">
                                                            <div class="description-block">
                                                                <h5 class="description-header">作者</h5>
                                                                <span class="description-text">${row[6]}</span>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                        </#list>
                                    </div>

                                </div>
                                <div class="card-footer">
                                    <a class="btn btn-flat float-right text-blue" href="/rankpage/zonghe/0">榜单</a>
                                </div>
                            </div>
                        </div>
                    </div>

                    <div class="row">
                        <div class="col-12">
                            <div class="card">
                                <div class="card-header">
                                    <strong>有声小说信息入库：</strong>
                                </div>
                                <div class="card-body">
                                    <div class="row">
                                            <#list audioList as row>
                                                <div class="col-1">
                                                    ${row_index + 1}
                                                </div>
                                                <div class="col-3">
                                                    ${row[3]}
                                                </div>
                                                <div class="col-3">
                                                    ${row[0]}
                                                </div>
                                                <div class="col-3">
                                                    ${row[1]}
                                                </div>
                                                <div class="col-2">
                                                    ${row[2]}
                                                </div>
                                            </#list>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>

                </section>
            </div>
            <div class="col-lg-2" style="background: #b3b3b3;">
                <#if displayGongZhongHao>
                <div class="card sticky-top">
                    <div class="card-header d-flex justify-content-center">
                        孤本残书，请入公众号
                    </div>
<#--                    <div class="card-body pl-1 pt-0 pb-0 pr-0">-->
                    <div class="d-flex justify-content-center">
                        <img class="img-fluid" id='sticker' src="image/qrcode.jpg">
                    </div>
                    <div class="card-footer">
                        <a class="d-flex justify-content-center" target="_blank" href="//shang.qq.com/wpa/qunwpa?idkey=b5612af6c53c02f3160bc56c7f16427aacd2be75408f5e53fd0fa72527784229"><img border="0" src="//pub.idqqimg.com/wpa/images/group.png" alt="网络小说共享" title="网络小说共享"></a>
                    </div>
                </div>
                </#if>
            </div>
        </div>
    </div>
    <#include "./footer.ftl">
</div>
<script src="admin/plugins/jquery/jquery.min.js"></script>
<script src="admin/plugins/bootstrap/js/bootstrap.bundle.min.js"></script>
<script src="admin/plugins/datatables/jquery.dataTables.js"></script>
<script src="admin/plugins/datatables-bs4/js/dataTables.bootstrap4.js"></script>
<script src="admin/plugins/sweetalert2/sweetalert2.min.js"></script>
<script src="admin/js/adminlte.min.js"></script>
<script src="utility.js"></script>

</body>
</html>
